<template>
  <view
    class="pa-06 px-2 bdrs-3 pos-r"
    :class="{
      'ev-n op-5': disabled,
    }"
    :hover-class="disabled ? '' : 'btn-hover'"
    @tap="$emit('click')"
  >
    <slot></slot>
    <button
      class="pos-mask op-0"
      v-if="openType"
      :open-type="openType"
    ></button>
  </view>
</template>

<script>
export default {
  props: {
    disabled: Boolean,
    openType: String,
  },
};
</script>
